import React from "react";
import App from "./app.jsx";
import { MyProvider } from "./store";

function Wrap(Component) {
  const xxx = function (props) {
    return (
      <MyProvider>
        <Component {...props} />
      </MyProvider>
    );
  };
  return xxx;
}

export default Wrap(App);
